Skip to content

Conversation

@ngholiza
Copy link
Collaborator

In production, the dt-nanohub-services ingress sends only /api/auth, /api/mcp, /api/dt and /api/tools to dt-web; every other /api path goes to FastAPI. The assistant added in #124 posts to /api/assistant, so that request went to dt-api and got a 404, and the chat failed.

This adds /api/assistant (Prefix) → dt-web:3000 to geddes/k8s/04-ingress.yaml, next to the other Next.js API prefixes.

  • No FastAPI routes live under /api/assistant, so nothing is shadowed.
  • The path still goes through dt-web's proxy.ts auth (401 without a session), and the route handler checks the session itself.

The live ingress gets the same rule through a kubectl patch that adds just this path, so the file matches the cluster.

Codex review: APPROVE.

🤖 Generated with Claude Code

The ingress only sends /api/auth, /api/mcp, /api/dt and /api/tools to
dt-web. All other /api paths go to FastAPI, so the assistant's chat
endpoint (POST /api/assistant) got a 404 from dt-api in production. This
adds /api/assistant to dt-web, next to the other Next.js API prefixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant